package com.ssm.annotation;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 阳小卓
 */
@Controller("userController")

public class UserController {
    @Resource(name = "userDao")
  private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void save(){
        this.userDao.save();
        System.out.println("userController..save..");
    }
}
